import {useSetActionIcon} from "@/utils/setActionIcon";
import {useSetMenu} from "@/utils/setMenus";
export default defineBackground(() => {
    console.log('Hello background!', {id: browser.runtime.id});

    useSetActionIcon();
    useSetMenu();
    const count = storage.defineItem<number>("local:count", {
        fallback: 0,
    });

    setInterval(async () => {
        const _count = await count.getValue();
        console.log(_count);
        await storage.setItem("local:count", _count + 1);
    }, 1000);
});
